<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Music Store</title>
<link type="text/css" rel="Stylesheet" href="style/front.css" />
<style type="text/css">
.table_td1 {
	width: 180px;
	height: 150px;
	text-align: center;
}

table span {
	height: 40px;
	display: inline-block;
}

.table_span1 {
	font-weight: bold;
	font-size: 11px;
	margin-left: 5px;
}

.table_span2 {
	width: 160px;
	font-weight: bold;
	font-size: 15px;
	margin-left: 15px;
	text-align: left;
}
</style>
</head>
<body>
	<div id="wrapper">
		<div id="header">
			<div id="header-logo">
				<a href="index.jsp"><img src="style/images/logo.png" alt=""></img></a>
			</div>
			<div id="header-login">
				<a href="register">注册</a> | <a href="login">登录</a>
			</div>
			<div class="clearBoth"></div>
			<div id="header-search">
				<form action="getAlbumTitle" method="get">
					<input id="keyword" name="title" type="text" /> <input
						id="btnSearch" type="submit" value="搜索" />
				</form>
			</div>
			<div id="header-nav">
				<ul>
					<li><a href="#">首页</a></li>
					<li><a href="#">商店</a></li>
					<li><a href="orderdetaillist">购物车</a></li>
					<li><a href="#">个人信息</a></li>
				</ul>
				<label id="welcome">您好,${user.userName}</label>
			</div>
		</div>
		<div id="content">
			<div id="sidebar">
				<h3>唱片分类</h3>
				<ul class="categories">
					<c:forEach items="${genres }" var="genre">
						<li><a href="#">${genre.name }</a></li>
					</c:forEach>
				</ul>
			</div>
			<div id="main">
				<h3 id="main-title">唱片详细信息</h3>
				<div id="hotAlbums">
					<table width="680px;" height="350px;">
						<tr>
							<td class="table_td1"><img
								style="width: 150px; height: 150px;" alt=""
								src="CoverImages/${album.id}.jpg"></td>
							<td><span class="table_span1">专辑名称：</span><span
								class="table_span2">《${album.title }》</span><br /> <span
								class="table_span1">歌手：</span><span style="margin-left: 48px;"
								class="table_span2">${album.artist }</span><br /> <span
								class="table_span1">定价：</span><span style="margin-left: 48px;"
								class="table_span2">￥ ${album.price }</span><br />
								<form action="addCart" method="get">
									<input style="margin-left: 92px;" type="submit" value="购买" />
								</form></td>
						</tr>
						<tr>
							<td class="table_td1" style="font-weight: bold;">详细介绍：</td>
							<td>
								<p style="font-size: 10px;">${album.description }</p>
							</td>
						</tr>
					</table>
				</div>
			</div>
			<div class="clearBoth"></div>
		</div>
		<div id="footer">
			<div id="footer-ad">
				<img src="${path }style/images/footer.png" alt=""></img>
			</div>
			<div id="footer-contactUs">
				<p>Music Store</p>
				<p>Design by Sam Chen, July,2011.</p>
			</div>
		</div>
	</div>
</body>
</html>
